Repository navigation
feat: show Unity extended values on every model's edit screen - #85
Merged
Merged
Conversation
The read-only "Extended values" box was member-only. Unity 2.100.1 gives meetings, groups, positions, intergroup meetings and committees the same store, so show it on their screens too. - ExtendedValuesMetaBox replaces MemberValuesMetaBox: one add_meta_boxes hook, a side box on each post type whose model publishes a POST_TYPE in Unity's configuration. Each lookup is feature-detected on its repository binding and resolved only when a box is drawn. - CommitteeExtendedValuesField adds the same table as a row on the committee term edit screen, which has no meta boxes; registered with the other committee screens, behind the CommitteeRepository check. - ExtendedValuesTable is the shared, escaped table. Locations get no box: TSML publishes no Location configuration and edits locations inside the meeting screen. Tests: the member box test moves to the generic box and covers each post type; a committee test; a WP_Term stand-in in the bootstrap, as tsml-for-unity has; the new test directory added to Pest's AmberTestCase list.
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The read-only "Extended values" box was member-only. Unity 2.100.1 (bleedingdeacons/unity#84) and TSML 2.2.0 (bleedingdeacons/tsml-for-unity#92) give meetings, groups, positions, intergroup meetings and committees the same store, so show it on their screens too.
ExtendedValuesMetaBoxreplacesMemberValuesMetaBox: oneadd_meta_boxeshook, a side box on each post type whose model publishes aPOST_TYPEin Unity's configuration. Lookups are feature-detected on their repository bindings and resolved only when a box is drawn.CommitteeExtendedValuesField: the same table as a row on the committee term edit screen (terms have no meta boxes), registered with the other committee screens behind theCommitteeRepositorycheck.ExtendedValuesTable: the shared, escaped table.Tests
WP_Termstand-in in the bootstrap (as tsml-for-unity has);Unit/Admin/ExtendedValuesadded to Pest'sAmberTestCaselist.ci-local amber(PHP 8.4, Docker): passed.Needs Unity 2.100.1 and TSML 2.2.0 deployed alongside.